-- GENERATED SPELL FOR [Savage Hill Mystic] --


function spell0_29622(pUnit, Event) --@Arcane Barrage,n/a--
pUnit:FullCastSpellOnTarget(50273,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29622', 631, 1)
end

function Sorts_29622(pUnit, Event)
local choix_sorts_29622 = math.random(0, 0)
if choix_sorts_29622 == 0 then
pUnit:RegisterEvent('spell0_29622', 1, 1)
end
end

function mob29622_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29622', math.random(1500, 3000), 1)
end

function mob29622_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29622_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29622_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29622, 1, 'mob29622_Action')
RegisterUnitEvent(29622, 2, 'mob29622_Leave')
RegisterUnitEvent(29622, 3, 'mob29622_Kill')
RegisterUnitEvent(29622, 4, 'mob29622_Die')
